package com.gxar.file.server.base.model.download;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author linsy
 * @version 1.0
 * @created 2023/7/7 14:08
 */
@ApiModel("下载文件视图模型")
@Data
public class DownloadRequest {

    @ApiModelProperty(value = "上传的产品名称", allowableValues = "material-素材")
    @NotBlank(message = "产品名称不能为空")
    private String product;
    @ApiModelProperty(value = "上传时返回的文件名称")
    @NotBlank(message = "文件名称不能为空")
    private String name;

}
